

const option = {
  color: ['#2edfa3', '#bce672', '#ff4777', '#70f3ff', '#4b5cc4', '#f47983', '#8d4bbb', '#6635EF', '#FFAFDA'],
  tooltip: {
    trigger: 'item',
    formatter: "{a} <br/>{b}: {c} ({d}%)"
  },
  legend: {
    orient: 'horizontal',
    icon: 'circle',
    bottom: 20,
    x: 'center',
    textStyle: {
      color: '#fff'
    },
    data: ['一级', '二级', '三级', '未创建']
  },
  series: [{
    name: '等级',
    type: 'pie',
    selectedMode: 'single',
    radius: [0, '38%'],

    label: {
      normal: {
        show: false,
        position: 'inner',
        formatter: '{d}%',
        textStyle: {
          color: '#fff',
          fontWeight: 'normal',
          fontSize: 14
        }
      }
    },
    labelLine: {
      normal: {
        show: false
      }
    },
    data: [{
      value: 35,
      name: '一级'
    },
    {
      value: 24,
      name: '二级'
    },
    {
      value: 9,
      name: '三级'
    },
    {
      value: 41,
      name: '未创建'
    },
    ]
  },
  {
    name: '等级',
    type: 'pie',
    radius: ['40%', '42%'],
    label: {
      normal: {
        formatter: '{b|{b}}\n{hr|}\n{d|{d}%}',
        rich: {
          b: {
            fontSize: 12,
            color: '#fff',
            align: 'left',
            padding: 4
          },
          hr: {
            borderColor: '#12EABE',
            width: '100%',
            borderWidth: 2,
            height: 0
          },
          d: {
            fontSize: 20,
            color: '#fff',
            align: 'left',
            padding: 4
          },
          c: {
            fontSize: 20,
            color: '#fff',
            align: 'center',
            padding: 4
          }
        }
      }
    },
    labelLine: {
      normal: {
        show: true,
        length: 20,
        length2: 20,
        lineStyle: {
          type: 'dashed',
          width: 2
        }
      }
    },
    data: [{
      value: 35,
      name: '一级'
    },
    {
      value: 24,
      name: '二级'
    },
    {
      value: 9,
      name: '三级'
    },
    {
      value: 41,
      name: '未创建'
    },
    ]
  }
  ]
};
export default option